{include file="news/header.tpl"}
<script language="javascript" src="../../static/bootstrap/js/CheckActivX.js"></script>

<OBJECT  ID="LODOP" CLASSID="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" WIDTH=0 HEIGHT=0> </OBJECT>

<!-- 头部// -->
{include file="order/top.tpl"}


	<!-- start: Content -->
			<div id="content" class="span12">
			
						
			<div class="row-fluid">


<div class="box span12"><!-- Default panel contents -->



<div class="box-content" id="form1">

<strong>订单编号：</strong>{$order.orderno} <strong>订购时间：</strong>{$order.addtime|date_format:"%Y-%m-%d %H:%I:%S"}  <strong>客户姓名：</strong>{$order.shr}  <strong>商品总数：</strong>{$order.num} <strong>总积分：</strong>{$order.coupons}


<table class="table table-bordered table-striped">
	<tr class=title>
		<th>商品编号</th>
		<th>商品名称</th>
		<th>数量</th>
		<th>积分</th>
		<th>小计</th>
	</tr>



	{section name=l loop=$goods }
	<tr>
		<td class=left width="3%">{$goods[l].goods_id}</td>
		<td class=right width="8%">{$goods[l].goods_name}</td>
		<td class=right width="3%">{$goods[l].num}</td>
		<td class=left width="3%">{$goods[l].coupons}</td>
		<td class=right width="3%">{$goods[l].coupons_total}</td>
	</tr>
	{/section}
</table>

</div>
</div>

<p><font size="2">1：若只打印<font color="#0000FF">《表一》</font>,看一下<input type="button" value="打印预览" onClick="prn1_preview()">,可<input type="button" value="直接打印" onClick="prn1_print()">也可<input type="button" value="选择打印机" onClick="prn1_printA()">打印。<br><br>


</div>




{literal}
<script type="text/javascript"> 
CheckLodop();

function prn1_preview() {	
	CreateOneFormPage();	
	LODOP.PREVIEW();	
};
function prn1_print() {		
	CreateOneFormPage();
	LODOP.PRINT();	
};
function prn1_printA() {		
	CreateOneFormPage();
	LODOP.PRINTA(); 	
};	
function CreateOneFormPage(){
	var strBodyStyle="<style><!--table { color: #000; width: 700px; line-height: 26px;border-collapse: collapse; } th, td { border: 1px solid #000; border-collapse: collapse; }table th { background-color: #ececec; }--></style>";
	var strFormHtml=strBodyStyle+"<body>"+document.getElementById("form1").innerHTML+"</body>";
	LODOP.ADD_PRINT_TEXT(50,50,260,39,"顶上积分兑换系统");
	LODOP.ADD_PRINT_HTM(88,50,300,200,strFormHtml);
	LODOP.PREVIEW();
};	

</script> 
{/literal}


